<template>
	<view>
		<view>
			<view><img src="@/static/images/shoukuan.png" alt="" /></view>
			<view>确认收款中...</view>
		</view>
		<view>收款已完成</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				packageData: '',
			}
		},
		onLoad(options) {
			// this.getPackage()
			// wx.getSetting({
			// 	withSubscriptions: true,
			// 	success(res) {
			// 		console.log('订阅总开关状态:', res.subscriptionsSetting.mainSwitch);
			// 	}
			// });
			// this.packageData = options.data
			// this.getPayment(this.packageData)
		},
		methods: {
			
			//拉起转账确认页面
			getPayment(packageData) {
				if (wx.canIUse('requestMerchantTransfer')) {
					wx.requestMerchantTransfer({
						mchId: '1712596890',
						appId: wx.getAccountInfoSync().miniProgram.appId,
						package: packageData,
						success: (res) => {
							// res.err_msg将在页面展示成功后返回应用时返回ok，并不代表付款成功
							console.log('success:', res);
						},
						fail: (res) => {
							console.log('fail:', res);
						},
					});
				} else {
					wx.showModal({
						content: '你的微信版本过低，请更新至最新版本。',
						showCancel: false,
					});
				}
			},
		},
	}
</script>

<style>
</style>